package com.atguigu.spring6.resourceLoaderaware;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestBeanDemo {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
        TestBean bean = context.getBean(TestBean.class);
        System.out.println(bean.getResourceLoader() == context);
    }
}
